﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Finbook.GameApp.Models.V5
{
    public class SkillV5
    {
        public int Multiply { get; set; } = 1;
        private int _damage;

        public int SkillDamage
        {
            get { return _damage*Multiply; }
            set { _damage = value; }
        }
        public SkillType SkillType { get; set; }
        public int Heal { get; set; }
        private SkillV5()
        {}
        public static SkillV5 CreateSkill(int num,SkillType type)
        {
            var skill = new SkillV5();
            skill.SkillType = type;
            switch (type)
            {
                case SkillType.Damage:
                    skill.SkillDamage = num;
                    break;
                case SkillType.Heal:
                    skill.Heal = num;
                    break;
                case SkillType.State:
                    break;
                default:
                    break;
            }
            return skill;
        }
    }
}
